<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div class="f" >
<span id="Ajax">
 <form class="form-inline">
    <div class="form-group">
        <input type="text"  name="name" class="form-control"  placeholder="输入姓名查询职工健康信息">
    </div>
    <button type="button" onclick="doSearch()" class="btn btn-primary btn-sm">查询</button>

 </form>
 <table width="50%" class="table table-striped" >
    <thead>
    <h1><th class="f">职工id</th>
        <th class="f">姓名</th>
        <th class="f">性别</th>
        <th class="f">年龄</th>
<!--        <th class="f">测试按钮</th>-->
    </h1>
    </thead>
    <tbody >
    <tr th:each="zhigong:${zhigonglist}">
        <td id="f11" th:text="${zhigong.id}">null</td>
        <td th:text="${zhigong.name}">null</td>
        <td th:text="${zhigong.xingbie}">null</td>
        <td th:text="${zhigong.nianing}">null</td>
<!--        <td><button th:pname="${zhigong.name}"  -->
<!--                    th:onclick="test(this.getAttribute('pname'))">测试按钮</button></td>-->
        <td><a onclick="doAjaxUpdate()" th:href="@{/lgbs/xiangqing/{id}(id=${zhigong.id})}" >详情</a></td>
       <td><a onclick="return confirm('确定要删除吗？');" th:href="@{/lgbs/doDeleteById/{id}(id=${zhigong.id})} "  >删除</a></td>
    </tr>
    </tbody>

</table>
    </span>
</div>

</body>
</html>